<?php
if($strStyleSheet == TRUE){
	echo "<table class='Normal' border='0' align='left' width='100%'>";
}
     echo "
     <tr align='left'>
         <td align='left' colspan='4'>
             <H2>Product Colour Search Result</H2>
         </td>
     </tr>
";
        //echo $strSQL;
if(!$myrow[0]==""){
     do {
	?>
     <tr bgcolor='<?php echo switch_background($boBG)?>'>
         <td align='left'>
             <a href='<?php echo  ScreenURL("EnterProductColour",array('intProductColourID'=>$myrow[0]) );?>' target='_blank'>
             <img src='./images/update.gif' width='65' height='13' border='0' alt='Update' align='middle'></a>
         </td>
         <td> 
			<?php echo  DisplayLookupValue("tblProduct","Product",$myrow["Product"]);?>   
         </td>
         <td>
         	<?php echo  DisplayLookupValue("tblColour","Colour",$myrow["Colour"]);?>
         </td>
		<?php
		 echo "
         <td align='right'>
              <a href=\"" . ScreenURL("ListProductColour",array('intProductColourID'=>$myrow[0],'ACTION'=>"qryDeleteProductColour") ) . "\"
                 onclick=\"return confirmLink(this, 'Delete ".DisplayLookupValue("tblColour","Colour",$myrow["Colour"])." option from ".DisplayLookupValue("tblProduct","Product",$myrow["Product"])."');\">
              <img src='./images/delete.gif' width='62' height='13' border='0' alt='Update' align='middle'></a>
         </td>

     </tr>";

         $boBG = -1 - $boBG;
     } while ($myrow = mysql_fetch_array($result));
}else{
	 echo "
     <tr class='MandatoryRed'><br/>
         <td colspan='4'>
             Your Search Has Returned No Results.
         </td>
     </tr>";
}

	if($strStyleSheet == TRUE){
   		echo "</table>";
	}
?>
